<%@ page language="java" import="java.util.*,org.apache.struts2.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"   %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE HTML>
<html>
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="<%=basePath %>/assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
	<link href="<%=basePath %>/assets/css/bui-min.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath %>/assets/css/page-min.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    	.form-horizontal{
    		margin-top:20px;
    	}
    	.control-group{
    		width:900px;
    		margin:auto;
    	}
    </style> 
</head>
<body>
	<form id="J_Form" action="<%=basePath %>/UserManager_insert" class="form-horizontal" method="post">
      <div class="control-group">
        <label class="control-label"><s>*</s>用户名:</label>
        <div class="controls" style="width:80%">
          <input name="name" type="text" class="input-large" data-rules="{required : true}" >
        </div>
      </div>
      <div class="control-group">
        <label class="control-label"><s>*</s>密码:</label>
        <div class="controls">
          <input id="password" name="password" type="password" class="input-normal" data-rules="{required : true}"  >
        </div>
      </div>
      <div class="control-group">
        <label class="control-label"><s>*</s>密码确认:</label>
        <div class="controls">
          <input type="password" class="input-normal" data-rules="{equalTo  : '#password' }"  >
        </div>
      </div>
      <div class="control-group">
        <label class="control-label"><s>*</s>手机号:</label>
        <div class="controls">
          <input name="telnum" type="text" class="input-large" >
        </div>
      </div>
      <div class="control-group">
        <label class="control-label"><s>*</s>电子邮件</label>
        <div class="controls">
          <input name="email" type="text" class="input-large" data-rules="{required : true , email:true}" >
        </div>
      </div>
     <div class="control-group">
        <label class="control-label"><s>*</s>用户角色</label>
        <div class="controls">
            <select name="rule">
				<option value="0">系统管理员</option>
				<option value="1">财务管理</option>
				<option value="2">内容管理</option>
				<option value="3">商户管理</option>
				<option value="4">物流管理</option>
			</select>
        </div>
      </div>
      <div class="row actions-bar">       
          <div class="form-actions span13 offset3">
            <button type="submit" class="button button-primary">保存</button>
            <button type="reset" class="button">重置</button>
          </div>
      </div>       
    </form>
</body>
	<script type="text/javascript" src="<%=basePath %>/assets/js/jquery-1.8.1.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>/assets/js/bui.js"></script>
	<script type="text/javascript" src="<%=basePath %>/assets/js/config.js"></script>
    <script type="text/javascript">
      var Form = BUI.Form;
      new Form.Form({
        srcNode : '#J_Form'
      }).render();
	</script>
</html>
